package com.simen.downloader;

import android.text.format.DateUtils;
import android.util.Log;

/**
 * Created by zhangming on 16/7/6.
 */
public class ThreadUnit extends Thread {
    public final static String TAG = ThreadUnit.class.getCanonicalName();

    public ThreadUnit(ThreadGroup group, Runnable runnable, String threadName, long stackSize) {
        super(group, runnable, threadName, stackSize);
        Log.d(TAG, "ThreadUnit " + threadName + ": a new thread is created:" + DateUtils.formatElapsedTime(System.currentTimeMillis()));
    }

    @Override
    public void run() {
        super.run();
        Log.d(TAG, "run " + getName() + ": is running");
    }
}
